package org.multimedia.jolitorask.asterisk;

import java.sql.SQLException;

import javax.ejb.EJBLocalObject;

public interface AsteriskWrapperLocal extends EJBLocalObject{

	public void init(String compte, String login);
	
	public int addSuperBuddy(int id_utilisateur, String username, String userfirstname, String userpass, String mail) throws SQLException;
	public int addNewPhone(int id_utilisateur, int id_telephone, String username, String userfirstname, String userpass, String mail) throws SQLException;
	
	public void updateVoiceMail( int id_utilisateur, String password, String email) throws SQLException;
	public void updateSuperBuddy(int id_utilisateur, String password) throws SQLException;
	public void updatePhoneBuddy(int id_telephone, String password) throws SQLException;
	
	public void deleteUser(int id_utilisateur)throws SQLException;
	public void deletePhone(int id_telephone)throws SQLException;
	
	
	public void updateCallerId(String newname, String newfirstname )throws SQLException;
}
